package com.tsd.jxc.stock.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.stock.entity.JxcStockInbillExt;
import com.tsd.jxc.stock.entity.JxcStockInbillItem;
import com.tsd.jxc.stock.entity.JxcStockInbillItemExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcStockInbillItem服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:33
 */
public interface JxcStockInbillItemService {

    /**
     * 描述：根据id获取JxcStockInbillItem
     *
     * @param id
     */
    JxcStockInbillItem getJxcStockInbillItemById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcStockInbillItem
     *
     * @param sid
     */
    JxcStockInbillItemExt queryBySid(String sid) throws Exception;

    List<JxcStockInbillItemExt> queryValidByBillList(List<String> bill_list) throws Exception;

    /**
     * 描述：根据sid列表删除JxcStockInbillItem
     *
     * @param list
     */
    void deleteJxcStockInbillItems(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcStockInbillItem
     *
     * @param record
     * @param opUser
     */
    void saveJxcStockInbillItem(JxcStockInbillItemExt record, SysUser opUser) throws Exception;

    void saveJxcStockInbillItem(JxcStockInbillExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcStockInbillItem
     *
     * @param params
     * @param page
     */
    List<JxcStockInbillItemExt> findJxcStockInbillItems(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcStockInbillItem
     *
     * @param params
     */
    List<JxcStockInbillItemExt> findJxcStockInbillItems(Map<String, Object> params) throws Exception;
}